#define _CRT_SECURE_NO_WARNINGS
#pragma warning(disable:6031)

#include <stdio.h>
#include <string.h>
int main()
{
	char str[100] = { 0 };
	char ret[100] = { 0 };
	int i = 0;
	int j = 0;
	int len = 0;
	scanf("%s", str);
	len = strlen(str);
	for (i = 0; i < len; i++)
	{
		if (str[i] != 'Z')
		{
			ret[j] = str[i];
			j++;
		}
	}

	printf("%s", ret);

	return 0;
}